package org.whz.service;

import org.whz.entity.Commodity;
import org.whz.entity.Coupon;
import org.whz.entity.Detail;

import java.math.BigDecimal;
import java.util.List;

public interface SellService {
    /**
     * 收钱
     * @param detailList 商品明细集合
     * @return
     * @throws Exception
     */
    public  BigDecimal  collectAmount(List<Detail> detailList) throws Exception;
    /**
     * 收钱
     * @param detailList 商品明细集合
     * @param couponList 优惠劵明细集合
     * @return
     * @throws Exception
     */
    public  BigDecimal  collectAmount(List<Detail> detailList, List<Coupon> couponList) throws Exception;


}
